5 Locomotives come off the rail and 17 cars pile up after train was put into Emergency. Reason: Open switch (to delivery track) on the main line.